I have bit 16-18 as my limit switch:
SetBitDirection(16,0);
SetBitDirection(17,0);
SetBitDirection(18,0);
these is the configuration I have for the 3:
ch1->LimitSwitchOptions=0x121;
I only want to stop motion, and it works but the problem
is that it activates even when the switch is not,
looking at the console I get this:
Neg Limit Stop Axis:1
the kflop in this pin have pull down resistors so I
didn't use any
I was thinking that maybe the problem is in the cable
lenght because is quite long(24 ft) and is low Voltaje
(3.3V)
could be that the input is floating? or maybe a
configuration problem?